package com.crm.business.crm.service.impl;

import com.crm.business.crm.service.*;
import com.crm.common.ka.core.entity.BasePage;
import com.crm.common.ka.core.feign.crm.entity.CrmEventBO;
import com.crm.common.ka.core.feign.crm.entity.QueryEventCrmPageBO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CrmEventCallServiceImpl implements CrmEventService {

    @Autowired
    private ICrmContractService crmContractService;
    @Autowired
    private ICrmCustomerService crmCustomerService;
    @Autowired
    private ICrmLeadsService leadsService;
    @Autowired
    private ICrmBusinessService crmBusinessService;


    public List<String> endContract(CrmEventBO crmEventBO){
        List<String> list = crmContractService.endContract(crmEventBO);
        return list;
    }

    public List<String> eventCustomer(CrmEventBO crmEventBO){
        List<String> list = crmCustomerService.eventCustomer(crmEventBO);
        return list;
    }

    public List<String> eventLeads(CrmEventBO crmEventBO){
        List<String> list = leadsService.eventLeads(crmEventBO);
        return list;
    }

    public List<String> eventBusiness(CrmEventBO crmEventBO){
        List<String> list = crmBusinessService.eventBusiness(crmEventBO);
        return list;
    }

    public List<String> eventDealBusiness(CrmEventBO crmEventBO){
        List<String> list = crmBusinessService.eventDealBusiness(crmEventBO);
        return list;
    }

    public List<String> receiveContract(CrmEventBO crmEventBO){
        List<String> list = crmContractService.receiveContract(crmEventBO);
        return list;
    }

    public BasePage<Map<String, Object>> eventCustomerPageList(QueryEventCrmPageBO eventCrmPageBO){
        BasePage<Map<String, Object>> page = crmCustomerService.eventCustomerPageList(eventCrmPageBO);
        return page;
    }

    public BasePage<Map<String, Object>> eventLeadsPageList(QueryEventCrmPageBO eventCrmPageBO){
        BasePage<Map<String, Object>> page = leadsService.eventLeadsPageList(eventCrmPageBO);
        return page;
    }

    public BasePage<Map<String, Object>> eventBusinessPageList(QueryEventCrmPageBO eventCrmPageBO){
        BasePage<Map<String, Object>> page = crmBusinessService.eventBusinessPageList(eventCrmPageBO);
        return page;
    }

    public BasePage<Map<String, Object>> eventDealBusinessPageList(QueryEventCrmPageBO eventCrmPageBO){
        BasePage<Map<String, Object>> page = crmBusinessService.eventDealBusinessPageList(eventCrmPageBO);
        return page;
    }

    public BasePage<Map<String, Object>> eventContractPageList(QueryEventCrmPageBO eventCrmPageBO){
        BasePage<Map<String, Object>> page = crmContractService.eventContractPageList(eventCrmPageBO);
        return page;
    }
}
